package S06;

public class F03 {
	public static void main(String[] args) {
		Shape shape=new Circle(10); //抽象类作为变量的类型来引用Circle类的对象
		shape.showArea(); //显示Circle对象的信息
		shape=new Rectangle(20, 10); //引用Rectangle类的对象
		shape.showArea(); //显示Rectangle对象的信息
	}
}
